const os = require('os')
// console.log(os.release());
// console.log(os.type());
// console.log(os.platform());
// console.log(os.arch());
// console.log(os.userInfo());
// console.log(os.cpus());
// console.log(os.homedir());
// console.log(os.hostname());
// console.log(os.networkInterfaces());
// console.log(os.totalmem());
// console.log(os.version());
// console.log(os.constants);
const fs = require('node:fs/promises')

;(async () => {
	let filehandle
	try {
		filehandle = await fs.open('README.md', 'r')
		console.log(filehandle)
		filehandle.readFile('utf-8').then(res => {
			console.log(res)
		})
	} finally {
		filehandle?.close()
	}
})()
